home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / dev / c / minigl.lha / MiniGL / doc / Performance.doc < prev   
Encoding:
Text File  |  2002-07-01  |  879 b   |  29 lines

  1. Notes about optimizing performance with MiniGL
  2. 30-06-02 by Christian Michael
  3.  
  4. Pay special attention to the following define in config.h:
  5.  
  6. CLAMP_COLORS : This enables color-clamping in glColor* functions. Clamping must be done where appropiate in the application if this is undefined.
  7. Color clamping will usually only generate overhead so use
  8. with care.
  9.  
  10. The define must be set when the linklibrary is compiled
  11.  
  12.  
  13. The following glHint's should be noted:
  14.  
  15. MGL_W_ONE_HINT will enable/disable faster transformations in
  16. cases where the w coordinate is equal to 1 (as with all
  17. instances of glVertex3f)
  18.  
  19. GL_PERSPECTIVE_CORRECTION_HINT will NOT affect perspective mapping.
  20. Use glDisable(MGL_PERSPECTIVE_MAPPING) to disable
  21. perspective-correct texture-mapping
  22.  
  23.  
  24. Last: Use the mglmacros.h if possible.
  25. It will eliminate most of the API overhead associated with
  26. vertexbuffer construction.
  27.  
  28.  
  29.